package cn.wolfcode.luowowo.comment.domain;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;
import java.util.Date;

/**
 * 游记评论
 */
@Setter
@Getter
@ToString
@Document("wenda_comment")
public class WendaComment implements Serializable {
    public static final int WENDA_COMMENT_TYPE_COMMENT = 0; //普通评论
    public static final int WENDA_COMMENT_TYPE = 1; //评论的评论

    public static final int WENDA_STATUS_COMMENT_COMM = 0; //普通的评论
    public static final int WENDA_STATUS_COMMENT = 1; //金牌的评论

    public static final String WENDA_TITLE_SIMPLE="指路人";
    public static final String WENDA_TITLE_MIDDLE="指路达人";
    public static final String WENDA_TITLE_HIGH="指路大师";


    @Id
    private String id;  //id
    private Long wendaId;

    private String headUrl;     //头像
    private Date createTime;    //创建时间
    private int level;//等级

    private Long userId;    //用户id
    private String username; //用户名
    private int type = WENDA_COMMENT_TYPE_COMMENT; //评论类别
    private int status = WENDA_STATUS_COMMENT_COMM;//评论的状态

    private String title=WENDA_TITLE_SIMPLE;//头衔

    private String content;  //评论内容
    private WendaComment refComment;  //关联的评论
}